import Vue from 'vue'
import DatePicker from '@/components/date-picker/index';
import TimePicker from '@/components/date-picker/src/picker/time-picker';
import ELSelect from '@/components/select/index';
import ElCascader from '@/components/cascader/index';
import ElMenu from '@/components/menu/index';
import ElMenuItem from '@/components/menu/src/menu-item';
import ElMenuItemGroup from '@/components/menu/src/menu-item-group';
import ElSubmenu from '@/components/menu/src/submenu';
import ElDialog from '@/components/dialog';
import ElTooltip from '@/components/tooltip/src/main';
import ElTabs from '@/components/tabs/index';
import ElTabPane from '@/components/tabs/src/tab-pane';
import MessageBox from '@/components/message-box/index';
import Message from '@/components/message/index';
import ElInput from '@/components/input/index';
import ElDropdown from '@/components/dropdown/dropdown';
import ElDropdownItem from '@/components/dropdown/dropdown-item';
import ElDropdownMenu from '@/components/dropdown/dropdown-menu';
import ElSwitch from '@/components/switch';
import ElCard from '@/components/card';
import ElTableColumn from '@/components/table-column';
import ElTable from '@/components/table';
import ElUpload from '@/components/upload';
import ElPopconfirm from '@/components/popconfirm';
import ElPopover from '@/components/popover';
import ElLink from '@/components/link';
import ElBadge from '@/components/badge';
import ElTree from '@/components/tree';
import 'umy-ui/lib/theme-chalk/index.css';
import { UTable, UTableColumn } from 'umy-ui';


//动态加载
Promise.resolve().then(()=>{
  Vue.prototype.$alert = MessageBox.alert;
  Vue.prototype.$confirm = MessageBox.confirm;
  Vue.prototype.$prompt = MessageBox.prompt;
  Vue.prototype.$message = Message;
  Vue.component(DatePicker.name, DatePicker);
  Vue.component(TimePicker.name, TimePicker);
  Vue.component(ELSelect.name, ELSelect);
  Vue.component(ElCascader.name, ElCascader);
  Vue.component(ElMenu.name, ElMenu);
  Vue.component(ElMenuItem.name, ElMenuItem);
  Vue.component(ElMenuItemGroup.name, ElMenuItemGroup);
  Vue.component(ElSubmenu.name, ElSubmenu);
  Vue.component(ElDialog.name, ElDialog);
  Vue.component(ElTooltip.name, ElTooltip);
  Vue.component(ElTabs.name, ElTabs);
  Vue.component(ElTabPane.name, ElTabPane);
  Vue.component(ElInput.name, ElInput);
  Vue.component(ElDropdown.name, ElDropdown);
  Vue.component(ElDropdownItem.name, ElDropdownItem);
  Vue.component(ElDropdownMenu.name, ElDropdownMenu);
  Vue.component(ElSwitch.name, ElSwitch);
  Vue.component(ElCard.name, ElCard);
  Vue.component(ElTableColumn.name, ElTableColumn);
  Vue.component(ElTable.name, ElTable);
  Vue.component(UTable.name, UTable);
  Vue.component(UTableColumn.name, UTableColumn);
  Vue.component(ElUpload.name, ElUpload);
  Vue.component(ElPopconfirm.name, ElPopconfirm);
  Vue.component(ElPopover.name, ElPopover);
  Vue.component(ElLink.name, ElLink);
  Vue.component(ElBadge.name, ElBadge);
  Vue.component(ElTree.name, ElTree);
})




// 单日查询
import day_picker from '@/components/date-picker/day_picker.vue'
Vue.component("day_picker", day_picker);
// 日区间查询
import day_range_picker from '@/components/date-picker/day_range_picker.vue'
Vue.component("day_range_picker", day_range_picker);

import v_menu from '@/components/menu/vMenu.vue'
Vue.component("v_menu", v_menu);

import table_change from '@/components/table-change'
Vue.component("table-change", table_change);

import echart from '@/components/echart'
Vue.component("echart", echart);

import energy_chart from '@/components/echart/energy-chart'
Vue.component("energy-chart", energy_chart);

import h_menu from '@/components/menu/hMenu.vue'
Vue.component("h_menu", h_menu);

import header_tip from '@/components/header-tip'
Vue.component("header-tip", header_tip);

import help_tip from '@/components/help-tip'
Vue.component("help-tip", help_tip);
